<%--
  Created by IntelliJ IDEA.
  User: MI
  Date: 2021/10/19
  Time: 9:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8" />
    <title>Default Examples</title>
    <style>
        form {
            margin: 0;
        }
        textarea {
            display: block;
        }
    </style>
    <link rel="stylesheet" href="kindeditor/themes/default/default.css" />
    <script charset="utf-8" src="kindeditor/kindeditor-all-min.js"></script>
    <script charset="utf-8" src="kindeditor/lang/zh-CN.js"></script>
    <script>
        var editor;
        KindEditor.ready(function(K) {
            editor = K.create('textarea[name="content"]', {
                allowFileManager : true
            });
            K('input[name=getText]').click(function(e) {
                alert(editor.text());
            });
        });
    </script>
</head>
<body>
<script type="text/javascript">
    google_ad_client = "ca-pub-7116729301372758";
    /* 更多演示（728x90） */
    google_ad_slot = "5052271949";
    google_ad_width = 728;
    google_ad_height = 90;
</script>
<script type="text/javascript"
        src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<h3>默认模式</h3>
<form>
    <textarea name="content" style="width:800px;height:400px;visibility:hidden;">KindEditor</textarea>
    <p>
        <input type="button" name="getText" value="取得文本(包含img,embed)" />
    </p>
</form>
</body>
</html>
